<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
    	$this->view->headTitle("Home");
    }

    public function indexAction()
    {
    	$dishMapper=new Model_DishMapper();
    	$hotest=$dishMapper->getDish(1);
    	$top=$dishMapper->getTopDishes();
    	$this->view->hotest=$hotest;
    	$this->view->top=$top;
    	
    	$locMapper=new Model_LocationMapper();
    	$top1Loc=$locMapper->getTop1Locations();
    	$popularLocs=$locMapper->getPopularLocations();
    	$this->view->topLoc=$top1Loc;
    	$this->view->popularLocs=$popularLocs;
    }

    public function aboutAction()
    {
    	
    }

    public function helpAction()
    {
    	$this->view->headTitle(" - Help");
    }
    public function searchAction(){
    	
    }
}

